var express = require('express');
var router = express.Router();

var api = require("../../../utils/api");

//获取通讯录
router.get('/persons', function (req, res, next) {
  api.api.reqBody(req);
  var path = api.api.urltoPath(req.baseUrl) + "/persons.json";
  res.json(api.api.request(path));
});

//获取新增初始值
router.get('/organizations', function (req, res, next) {
  api.api.reqBody(req);
  var path = api.api.urltoPath(req.baseUrl) + "/organizations.json";
  res.json(api.api.request(path));
});

module.exports = router;